package cn.bone.auth.security.base.conf;

import org.springframework.boot.web.servlet.FilterRegistrationBean;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.ImportResource;
import org.springframework.web.filter.DelegatingFilterProxy;

@Configuration
@ImportResource(locations = {"classpath:spring-security.xml"})
public class SecurityConfig {


//    //没生效，还是不能解决静态资源500的错误
//    @Bean
//    public FilterRegistrationBean filterRegistrationBean(){
//
//        DelegatingFilterProxy filterProxy = new DelegatingFilterProxy();
//
//        FilterRegistrationBean registration = new FilterRegistrationBean(filterProxy);
//        registration.setName("springSecurityFilterChain");
//        registration.addUrlPatterns("/*");
//        return registration;
//    }

}
